import { log } from './log';
import { Clock } from './clock';
import { describe } from '$lib';

export const AttackAction = (target) =>  (world, e) => {
  // TODO
  return {
    error: false,
    action: () => {
      log(`${describe(world, e)} attacks ${describe(world, target)}`);
      Clock.time[e] += 10;
    },
  };
};
